<?php echo $header; ?>
<div id="columnswrapper">
	<?php echo $column_left; ?>
	<div id="content" class="norightsidebar">
		<div class="inner">
		
		
		<div class="listing type-listing hentry">
		
		<p class="hide">&nbsp;</p>
		<h3><?php echo $heading_title; ?></h3>
		
		
		<!-- loop through images -->	
		<div class="image">
			<img width="200" height="200" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" src="<?php echo $image; ?>" />
			<div class="shadow-large-article"></div>
		</div>					
				
			
			
			
		<!-- Videos section.  Will only show up if there are entries in the Video section of a post  -->
		
		
		<div class="clear"></div>
		<div id="features_article">
		<div class="inner">
			<div style="margin-bottom:20px;"><span class="date"><?php echo $date_available;?></span><span class="author"><?php echo $model;?></span></div>
			<div><?php echo $meta_description;?></div>
		</div><!-- end inner -->
		</div><!-- end features -->
		<?php foreach ($downloads as $download) {?>
			<div style="margin:10px 0px;font-size: 12px;"><a style="cursor: pointer;padding:8px 20px;" id="change" onclick="location = '<?php echo str_replace('&', '&amp;', $download['href']); ?>'" class="button"><span><?php echo $text_download; ?> <?php echo $download['name']; ?></span></a></div>	
		<?php }?>
		<p><?php echo $description; ?></p>
		<div id="social">
		 
		<a class="twitter" onclick="share_twitter();" title="Tweet this!">Tweet this page</a>
		
		<a class="stumbleupon" onclick="share_stumbleupon();" title="Share on StumbleUpon">Share on StumbleUpon</a>
		<a class="reddit" onclick="share_reddit();" title="Share on Reddit">Share on Reddit</a>
		<a class="digg" onclick="share_digg();" title="Share on Digg">Share on Digg</a>
		
		<a class="delicious" onclick="share_delicious();"  title="Share on Delicious">Share on Delicious</a>
		
		<a class="facebook" onclick="share_facebook();" title="Share in Facebook">Share in Facebook</a>
		
		</div>
		<div class="clearleft"></div>
		
		<div class="page-break"></div>
		
			
		</div><!-- end post -->
		
		
		<h4><?php echo $tab_related; ?></h4>
		<div>
		<ul>
			 <?php if ($articles) { ?>
		        <?php for ($j = 0; $j < sizeof($articles); $j++) { ?>
		        
		          <li><?php if (isset($articles[$j])) { ?>
		            <a href="<?php echo str_replace('&', '&amp;', $articles[$j]['href']); ?>"><?php echo $articles[$j]['name']; ?></a>(
		            <span style="color: #999; font-size: 11px;"><?php echo $articles[$j]['date_available']; ?></span>)
		            
		            <?php } ?></li>		          
		        <?php } ?>
		      </table>
		      <?php } else { ?>
		      <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><?php echo $text_no_related; ?></div>
		      <?php } ?>
      		</ul>
		</div>
		
		</div><!-- end inner -->
	</div><!-- end content -->
	<script type="text/javascript">
			
		function share_facebook()
		{
			var	u=location.href;
			var t=document.title;
			window.open("http://www.facebook.com/share.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t));
		
		}
		
		function share_twitter()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://twitter.com/home?status=" + encodeURIComponent(uvnn));
		}
		
		function share_stumbleupon()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://www.stumbleupon.com/submit?url=" + encodeURIComponent(uvnn));
		}
		
		function share_reddit()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://www.reddit.com/submit?url=" + encodeURIComponent(uvnn));
		}
		
		function share_digg()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://digg.com/submit?phase=2&amp;amp;url=" + encodeURIComponent(uvnn));
		}
		function share_delicious()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://del.icio.us/post?url=" + encodeURIComponent(uvnn));
		}
	</script>
	<?php echo $column_right; ?>	
	</div><!-- end columnswrapper -->
<?php echo $footer; ?> 